﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace HotelBooking
{
    public partial class Form1 : Form
    {
        private System.Object lockText = new System.Object();


        public Form1()
        {
            InitializeComponent();

        }

      



        public void changeText()
        {

            SetText(Program.Log);
            
        }


        private void SetText(string text)
        {
            lock (lockText)
            {
                this.textBox1.Text = text;
            }
            
        }


    }
}
